<%@ page language="java" contentType="text/html" pageEncoding="utf-8"%>
<%@ include file="header.jsp" %>
<title>红客会</title>
<link type="text/css" rel="stylesheet" href="m/css/css.css"/>
<script type="text/javascript" src="m/js/jquery.min.js"></script>
<script type="text/javascript" src="m/js/cart.js"></script>
<style type="text/css">
body{ background:url(m/images/c_shop_bg2_listfood.jpg) repeat-y right; height:auto;margin-bottom:15%;}
.clear{ clear:both;} 
h2{ font:normal 18px "黑体"; color:#fff;line-height:26px; }
h3{color:#999; font-size:14px; font-weight:normal; padding:0 0 15px;}
*{ margin:0; padding:0;}
.main{ width:100%}
.main .img{ width:100%; line-height:0px;}
.order,.activity,.members{ margin:0px 0 0 0 ; position:relative; }
.main .img img{ width:100%;}
.main .txt{width:50%; margin:0 auto; background:url(m/images/index_txt.png) no-repeat; background-size:contain; background-position:bottom;  position:absolute; text-align:center;line-height:26px; bottom:0px;right:25%; z-index:1;}
.main a{ text-decoration:none;}
</style>
<script type="text/javascript">
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
WeixinJSBridge.call('hideToolbar');
});
</script>
</head>

<body>
	<div class="main">
	<div style="margin-bottom:40px; z-index:1000;">
		<%@ include file="footer_red.jsp" %>
	</div>
    	<div class="order">
        	<a href="rfoods/1"><!-- 水果 -->
                <div class="img"><img src="m/images/red_fruit.png"></div>
            </a>
        </div>
        <div class="clear"></div>
        <div class="activity">
        	<a href="rfoods/2"><!-- 农作物 -->
                <div class="img"><img src="m/images/red_nong.png"></div>
            </a>
        </div>
        <div class="members" id="user">
        	<a href="rfoods/3"><!-- 养生类 -->
                <div class="img"><img src="m/images/red_yang.png"></div>
            </a>
        </div>
    </div>
    <div class="footer">服务支持：億萬ONE</div>


<script type="text/javascript">
$(function(){
	 var length = $.cart.length();
	 <% if("0000000000" != request.getSession().getAttribute("currentRestaurantId")){%>
		 if(length > 0) {
			if(confirm("进入红客会，是否清空购物车?")) {
				window.localStorage.cart = "[]";
			} else {
				window.location.href = "category?cid=${loginId}";
			}
		 }
		 //无论清不清空，都切换当前店铺为红客会
		<%	 request.getSession().setAttribute("currentRestaurantId", "0000000000"); } %>
});
</script>
</body>

</html>